package haolin.servlet;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet(urlPatterns = "/registerPage.do")
public class RegisterPageServlet extends HttpServlet{

	@Override
	protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		List<String> iconNameList = new ArrayList<String>();
		for (int i = 1; i <= 15; i++) {
			iconNameList.add(i + ".gif");
		}
		
		req.setAttribute("iconNameList", iconNameList);
		
		req.getRequestDispatcher("register.jsp").forward(req, resp);
	}
}
